﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CaseProfileSupports.ascx.cs" Inherits="PayrollHR.Administration.Modules.CaseProfileSupportControl" %>
<%@ Register Src="DatePicker.ascx" TagName="DatePicker" TagPrefix="uc2" %>
<%@ Register Src="DecimalTextBox.ascx" TagName="DecimalTextBox" TagPrefix="uc3" %>

<asp:GridView ID="grvStudentDetails" runat="server" ShowFooter="True" AutoGenerateColumns="False"
    Width="100%" OnRowDeleting="grvStudentDetails_RowDeleting" OnRowDataBound="grvStudentDetails_RowDataBound">
    <Columns>
        <asp:TemplateField HeaderText="Giấy tờ cần thiết">
            <ItemTemplate>
                <asp:HiddenField ID="hfProfilePropertyID" runat="server" Value='<%# Eval("ProfilePropertyID") %>' />
                <asp:TextBox ID="txtPaperRequest" TextMode="MultiLine" Text='<%# Eval("PaperRequest") %>' runat="server" MaxLength="50"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ngày Làm">
            <ItemTemplate>
                <asp:HiddenField ID="hfOnRequest" runat="server" Value='<%# Eval("OnRequest") %>' />
                <uc2:DatePicker ID="dpOnRequest" Text='<%# Eval("OnRequest") %>'   runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ngày Gửi">
            <ItemTemplate>
                <asp:HiddenField ID="hfDateSubmitted" runat="server" Value='<%# Eval("DateSubmitted") %>' />
                <uc2:DatePicker ID="dpDateSubmitted" Text='<%# Eval("DateSubmitted") %>' runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Đến Đâu">
            <ItemTemplate>
                <asp:TextBox ID="txtProTo" Text='<%# Eval("ProTo") %>' runat="server"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Cước Phí">
            <ItemTemplate>
                <asp:HiddenField ID="hfPostage" runat="server" Value='<%# Eval("Postage") %>' />
                <uc3:DecimalTextBox ID="txtPostage" runat="server" />
            </ItemTemplate>

        </asp:TemplateField>
        <asp:TemplateField HeaderText="Hoàn Tất">
            <ItemTemplate>
                <asp:TextBox ID="txtProComplete" Text='<%# Eval("ProComplete") %>' runat="server"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ghi Chú">
            <ItemTemplate>
                <asp:TextBox ID="txtNote" runat="server" Text='<%# Eval("Note") %>' TextMode="MultiLine"></asp:TextBox></td>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="STK từ">
            <ItemTemplate>
                <asp:HiddenField ID="hfdpFromdate" runat="server" Value='<%# Eval("Fromdate") %>' />
                <uc2:DatePicker ID="dpFromdate" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="STK Đến">
            <ItemTemplate>
                <asp:HiddenField ID="hfdpTodate" runat="server" Value='<%# Eval("Todate") %>' />
                <uc2:DatePicker ID="dpTodate" runat="server" />
            </ItemTemplate>
            <FooterStyle HorizontalAlign="Right" />
            <FooterTemplate>
                <asp:Button ID="ButtonAdd" runat="server" CssClass="adminButtonBlue" Text="Add New Row" OnClick="ButtonAdd_Click" />
            </FooterTemplate>
        </asp:TemplateField>
        <asp:CommandField ShowDeleteButton="True" />
    </Columns>
    <FooterStyle CssClass="GridViewFooter" />
</asp:GridView>
<br />
